<?php

namespace app\admin\controller;

class Home extends Base
{
	
	public function index(){

		return view();
	}
	public function loginout(){
		
		session(null);
		if(session('?admin.id')){
			$this->error('退出失败');
		}else{
			$this->success('退出成功！','admin/index/login');
		}
	}
}






